<?php
/**
 * @return
 * @author 朱乐斌
 * @date
 */

namespace app\api\controller;

use app\BaseController;
use think\Exception;

class ServeDesc extends BaseController
{

    // 获取服务介绍列表
    public function serveList()
    {
        try {
            $data = (new \app\api\model\ServeDescModel)->where('status', 1)->field('id,title,content,price')->select()->toArray();
        } catch (Exception $e) {
            $this->error('获取失败', $e->getMessage());
        }
        $this->success('获取成功', $data);
    }

}